package com.yx.common.core.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * 监测分析 公共配置 属性
 *
 * @author kai.yang
 * @date 2023/3/30 15:11
 */
@Configuration
@Data
@RefreshScope
public class CommonConf {

    /**
     * 模版PDF文件
     */
    @Value("${sgcc.file.path.template:/yeexun/scdl/jcfx/file/path/template/}")
    private String visualFileUrl;




    @PostConstruct
    public void init(){
        CommonConfConstants.visualFileUrl = this.visualFileUrl;


    }

}
